package fr.bda.cloud.tray;

import java.util.ArrayList;
import java.util.List;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;

import fr.bda.cloud.CloudUser;
import fr.bda.cloud.storage.StorageUnitConfiguration;

@XmlRootElement
public class CloudTrayData {

	private CloudUser user = new CloudUser();
	private List<StorageUnitConfiguration> storageUnitConfigurations = new ArrayList<>();

	@XmlElementWrapper(name = "storage_unit")
	@XmlElement(name = "storage_unit_config")
	public List<StorageUnitConfiguration> getStorageUnitConfigurations() {
		return storageUnitConfigurations;
	}

	public void setStorageUnitConfigurations(List<StorageUnitConfiguration> storageUnitConfigurations) {
		this.storageUnitConfigurations = storageUnitConfigurations;
	}

	public CloudUser getUser() {
		return user;
	}

	public void setUser(CloudUser user) {
		this.user = user;
	}

}
